import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import componentRegister from "./components/index";

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/assets/styles/index.scss' // global css
// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import {createPinia} from 'pinia'

const store = createPinia()

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }

app.use(ElementPlus)
app.use(router)
app.use(componentRegister)
app.use(store)
app.mount('#app')


